package com.example.cf.grouplist.activity;

import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.widget.ArrayAdapter;
import android.widget.Spinner;

import com.example.cf.grouplist.R;

public class Main2Activity extends AppCompatActivity {

    private Spinner Spinner;
    private String [] strs={"fragment1","fragment2"};
    private ViewPager viewPager;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        Spinner = ((Spinner) findViewById(R.id.spinner));
        viewPager = ((ViewPager) findViewById(R.id.viewPager));
        initView();
    }

    private void initView() {
        Spinner.setAdapter(new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,strs));
    }
}
